﻿using MrPP.Game;
using System;

namespace Shows_3D
{
    public static class DataAdaptor
    {
        [Serializable]
        public class Data
        {
            public int code;
            public PaginationData pageInfo;
            public WindowsData[] datas;
        }

        [Serializable]
        public class ModelInfo
        {
            public int code;
            public ModelInfoData[] datas;
        }
        [Serializable]
        public class ModelInfoData
        {
            public string id;
            public string user_id;
            public string goods_id;
            public string image_url;
            public string goods_url;
            public string goods_height;
            public ModelData models;
        }
        [Serializable]
        public class WindowsData
        {
            public int id;
            public string is_3d;
            public ImageData image;
        }

        [Serializable]
        public class ImageData
        {
            public string url;
            public string title;
        }

        [Serializable]
        public class ModelData
        {
            public string id;
            public string md5;
            public string model_path;
            public string[] model_files;
            public string user_id;
            public string title;
            public string goods_background;
            public string music;
        }

        [Serializable]
        public class PaginationData
        {
            public int page_num;
            public int num_perpage;
            public int current_page;
        }
    }
}